package com.myrpc.autoconfig;

import com.myrpc.handler.RpcRequestHandler;
import com.myrpc.listener.MyRpcListener;
import com.myrpc.provider.impl.DefaultInterfaceProvider;
import com.myrpc.proxy.CglibProxyFactory;
import com.myrpc.register.ServiceDiscovery;
import com.myrpc.register.nacos.NacosServiceDiscovery;
import com.myrpc.transfer.transport.RpcRequestTransport;
import com.myrpc.transfer.transport.socket.SocketRpcRequestClient;
import com.myrpc.transfer.transport.socket.SocketRpcServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Import;

@Configuration
@Import({MyRpcConfigEntity.class,
        SocketRpcServer.class,
        NacosServiceDiscovery.class,
        SocketRpcRequestClient.class,
        CglibProxyFactory.class,

        DefaultInterfaceProvider.class,
        RpcRequestHandler.class
})
public class MyRpcAutoConfiguration {

}
